package com.dd.census.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dd.census.entity.SysRoleMenu;
import com.dd.census.mapper.SysRoleMenuMapper;
import com.dd.census.service.SysRoleMenuService;

@Service
public class SysRoleMenuServiceImpl implements SysRoleMenuService {

	@Autowired
	private SysRoleMenuMapper sysRoleMenuMapper;

	public Map<String, Object> selectByRoleId(SysRoleMenu sysRoleMenu) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("items", sysRoleMenuMapper.selectByRoleId(sysRoleMenu));
		return map;
	}
}
